<%-- 
    Document   : index
    Created on : 20-Jan-2013, 22:16:54
    Author     : Joseph
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="css/style.css" rel="stylesheet" type="text/css"/>
        <title>Student Information</title>
        <link rel="shortcut icon" href="http://www.wikipedia.org/favicon.ico" />

    </head>

    <header id="top">

        Busqueda y edicion

    </header>
    <body>

        <div id="left">
            <button onclick="window.location.href = '/crudSearchJsp_conImagen/index.jsp'">Inicio</button>
            <br/>
            <button onclick="window.location.href = '/crudSearchJsp_conImagen/studentinfo.jsp'">Nueva Busqueda</button>
            <br/>
            <button onclick="window.location.href = '/crudSearchJsp_conImagen/img.jsp'">Cargar Imagen</button>
            
        </div>


        <div id="right">

           


        </div>


        <div id="content" class="right_content">
            
            

            <article class="articulo">
                <h2>Actualizar Eliminar</h2>
                <form action="./StudentServlet" method="POST">
                    <table>
                        <tr>
                            <td>Foto</td>
                            <td><img src="/crudSearchJsp_conImagen/faces/BuscarIMG?studentId=${student.studentId}" width="150" height="140"/></td>
                        </tr>
                        <tr>
                            <td>Student ID</td>
                            <td><input type="text"  name="studentId"  value="${student.studentId}" readonly  /></td>
                        </tr>
                        <tr>
                            <td>First Name</td>
                            <td><input type="text" name="firstname" value="${student.firstname}" /></td>
                        </tr>
                        <tr>
                            <td>Last Name</td>
                            <td><input type="text" name="lastname" value="${student.lastname}" /></td>
                        </tr>
                        <tr>
                            <td>Year Level</td>
                            <td><input type="text" name="yearLevel" value="${student.yearLevel}" /></td>
                        </tr>
                        <tr>
                            <td colspan="2">

                                <input class="buttom" type="submit" name="action" value="Edit" />
                                <input class="buttom" type="submit" name="action" value="Delete" />
                                <input class="buttom" type="submit" name="action" value="Delete" />

                            </td>                
                        </tr>            
                    </table>
                </form>     

            </article>

            <br/>
            <br/>
            
            <article class="articulo">
                <form method="POST" enctype="multipart/form-data" action="FileUploadServerFull">


                <table>
                    <tr>
                        <td><h2>Cambiar Imagen</h2></td>
                    </tr>
                    <tr>
                        <td>Student ID</td>
                        <td><input type="text"  name="studentId" size="5" value="${student.studentId}" readonly/></td>
                    </tr>
                        <tr><td>Archivo</td>
                        <td>
                            <input type="file" name="file" ></input></td></tr>

                       <tr><td>Ingresar</td>
                        <td><input type="submit" value="Cargar"/></td></tr>

                </table>
            </form>
                    
            </article>
            <br/>
            <br/>
            <!-- <article class="articulo">
                <table>
                   <h2>Datos Actualizados</h2>
                    <tr>
                        <td>Foto</td>
                        <td><img src="/crudSearchJsp_conImagen/BuscarIMG?studentId=${student.studentId}" width="150" height="140"/></td>
                    </tr>

                    <tr>
                        <td>Student ID</td>
                        <td><input type="text"  name="studentId"  value="${student.studentId}" readonly  /></td>
                    </tr>

                    <tr>
                        <td>First Name</td>
                        <td><input type="text" name="firstname" value="${student.firstname}" readonly /></td>
                    </tr>
                    <tr>
                        <td>Last Name</td>
                        <td><input type="text" name="lastname" value="${student.lastname}" readonly /></td>
                    </tr>
                    <tr>
                        <td>Year Level</td>
                        <td><input type="text" name="yearLevel" value="${student.yearLevel}" readonly /></td>
                    </tr>

                </table>

            </article> -->
             
           






        </div>

    </body>
    <footer id="bottom">
        Formulario de busqueda
    </footer>    
</html>
